﻿using System;
using System.Linq;

namespace System
{
    public static class ObjectExtensions
    {
        public static bool IsIn<T>(this T item, params T[] list)
        {
            return list.Contains(item);
        }

        public static T As<T>(this object obj)
            where T : class
        {
            return (T)obj;
        }
    }
}
